# import tensorflow as tf
#
# node1 = tf.constant(3.0, tf.float32)
# node2 = tf.constant(4.0)

# print(node1, node2)

# import nltk
#
# nltk.download()


# import logging
#
# logger_name = 'example'
# logger = logging.getLogger(logger_name)
# logger.setLevel(logging.DEBUG)
#
# log_path = './log.log'
# fh = logging.FileHandler(log_path)
# fh.setLevel(logging.WARN)
# # fh.setLevel(logging.DEBUG)
#
# fmt = "%(asctime)-15s %(levelname)s %(filename)s %(lineno)d %(process)d %(message)s"
# datefmt = "%a %d %b %Y %H:%M:%S"
# formatter = logging.Formatter(fmt=fmt, datefmt=datefmt)
#
# fh.setFormatter(formatter)
#
# logger.addHandler(fh)
#
# logger.debug('debug message')
# logger.info('info message')
# logger.warn('warn message')
# logger.error('error message')
# logger.critical('critical message')

# import tushare as ts
# from LSTM.variableset import EMVar
# import datetime
#
# data = ts.get_k_data(code=EMVar.CODE_CY, index=True, start='2007-01-01', end=datetime.datetime.now().strftime('%Y-%m-%d'))
# date_series = data[EMVar.date]
# new_df = data.set_index(date_series)
# pass